def create_code():
    #define code list
    morse_code = []

    a = ['A', '.-']
    b = ['B', '-...']
    c = ['C', '-.-.']
    d = ['D', '-..']
    e = ['E', '.']
    f = ['F', '..-.']
    g = ['G', '--.']
    h = ['H', '....']
    i = ['I', '..']
    j = ['J', '.---']
    k = ['K', '-.-']
    l = ['L', '.-..']
    m = ['M', '--']
    n = ['N', '-.']
    o = ['O', '---']
    p = ['P', '.--.']
    q = ['Q', '--.-']
    r = ['R', '.-.']
    s = ['S', '...']
    t = ['T', '-']
    u = ['U', '..-']
    v = ['V', '...-']
    w = ['W', '.--']
    x = ['X', '-..-']
    y = ['Y', '-.--']
    z = ['Z', '--..']
    num_0 = ['0', '-----']
    num_1 = ['1', '.----']
    num_2 = ['2', '..---']
    num_3 = ['3', '...--']
    num_4 = ['4', '....-']
    num_5 = ['5', '.....']
    num_6 = ['6', '-....']
    num_7 = ['7', '--...']
    num_8 = ['8', '---..']
    num_9 = ['9', '----.']
    #short code
    sh_0 = ['0', '-']
    sh_1 = ['1', '.-']
    sh_2 = ['2', '..-']
    sh_3 = ['3', '...--']
    sh_4 = ['4', '....-']
    sh_5 = ['5', '.....']
    sh_6 = ['6', '-....']
    sh_7 = ['7', '--...']
    sh_8 = ['8', '-..']
    sh_9 = ['9', '-.']


    morse_code = [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, num_0, num_1, num_2, num_3, num_4, num_5, num_6, num_7, num_8, num_9]
    short_code = [sh_0, sh_1, sh_2, sh_3, sh_4, sh_5, sh_6, sh_7, sh_8, sh_9]
    return morse_code, short_code

if __name__ == "__main__":
    print(create_code())